/****************************************************************
***Class to collect the tick_counts and calculate the averages***
***it calculates the difference between the first and the 
***second insertTimeTick, third + fourth etc....
***Author: Rutger Manders									  ***
****************************************************************/
#ifndef COLLECTRESULTS_H
#define COLLECTRESULTS_H
#include "tbb/tick_count.h"
#include <vector>
#include <string>
#include <iostream>

class CollectResults
{
public:
	CollectResults(std::string name, std::string description);
	
	void start();
	void stop();
	void calculateAverages();
	std::string getName();
	std::string getDescription();
	float getAverage();

private:
	std::vector<tbb::tick_count> start_tick_counts;
	std::vector<tbb::tick_count> stop_tick_counts;
	std::vector<float> averages;
	float average;
	std::string name;
	std::string description;
};
#endif